package com.glela.platform.model.response;

import com.glela.common.constant.CommonConstants;

/**
 * @author liujie
 *
 */
public class ResponseUser {

	private Long userId;

	private String userName = "";// 登陆用户名

	private String password;//登录密码

	private Integer roleId;// 角色

	private String nickName = "";// 昵称

	private int lockStatus;// 1锁定 0未锁定

	private int isBlack;// 是否黑名单(1：是 0：否)

	private int isStore;// 店铺权限（0非，1店员，2店长）

	private int storeId;// 店铺id

	private Long money;// 账号余额

	private String synopsis = "";// 个人介绍

	private String talentEffectTime = "";// 达人生效时间

	private String talentFailureTime = "";// 达人失效时间

	private int empiricValue;

	private String picture = "";//

	private String realName = "";

	private String persionId = "";

	private String recommendFrom = "";

	private String memberRecommend = "";

	private String talentTeacher = "";

	private int sex;

	private String locatedName = "";

	private String token = "";

	private String rongCloudToken = "";

	private int level;

	private String roleName = "";

	private String roleCode = "";

	private int fansCount;// 粉丝数量

	private String backgroundImage = "";// 达人主页背景图

	private int isShow;

	private int	isOpenRecommand;
	private int	totalSale;		//销售额

	private String isHasLoginPwd = "yes";// 是否有登录密码
	private int		bindType;				//0:非巴米 1:巴米
	private String userMachineCode;

	public int getBindType() {
		return bindType;
	}

	public void setBindType(int bindType) {
		this.bindType = bindType;
	}

	public String getUserMachineCode() {
		return userMachineCode;
	}

	public void setUserMachineCode(String userMachineCode) {
		this.userMachineCode = userMachineCode;
	}

	public String getBackgroundImage() {
		return backgroundImage;
	}

	public void setBackgroundImage(String backgroundImage) {
		this.backgroundImage = backgroundImage;
	}

	public int getFansCount() {
		return fansCount;
	}

	public void setFansCount(int fansCount) {
		this.fansCount = fansCount;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Integer getRoleId() {
		return roleId;
	}

	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public int getLockStatus() {
		return lockStatus;
	}

	public void setLockStatus(int lockStatus) {
		this.lockStatus = lockStatus;
	}

	public int getIsBlack() {
		return isBlack;
	}

	public void setIsBlack(int isBlack) {
		this.isBlack = isBlack;
	}

	public int getIsStore() {
		return isStore;
	}

	public void setIsStore(int isStore) {
		this.isStore = isStore;
	}

	public int getStoreId() {
		return storeId;
	}

	public void setStoreId(int storeId) {
		this.storeId = storeId;
	}

	public Long getMoney() {
		return money;
	}

	public void setMoney(Long money) {
		this.money = money;
	}

	public String getSynopsis() {
		return synopsis;
	}

	public void setSynopsis(String synopsis) {
		this.synopsis = synopsis;
	}

	public String getTalentEffectTime() {
		return talentEffectTime;
	}

	public void setTalentEffectTime(String talentEffectTime) {
		this.talentEffectTime = talentEffectTime;
	}

	public String getTalentFailureTime() {
		return talentFailureTime;
	}

	public void setTalentFailureTime(String talentFailureTime) {
		this.talentFailureTime = talentFailureTime;
	}

	public String getPicture() {
		return picture;
	}

	public void setPicture(String picture) {
		this.picture = picture;
	}

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public String getPersionId() {
		return persionId;
	}

	public void setPersionId(String persionId) {
		this.persionId = persionId;
	}

	public String getRecommendFrom() {
		return recommendFrom;
	}

	public void setRecommendFrom(String recommendFrom) {
		this.recommendFrom = recommendFrom;
	}

	public int getSex() {
		return sex;
	}

	public void setSex(int sex) {
		this.sex = sex;
	}

	public String getLocatedName() {
		return locatedName;
	}

	public void setLocatedName(String locatedName) {
		this.locatedName = locatedName;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public String getRongCloudToken() {
		return rongCloudToken;
	}

	public void setRongCloudToken(String rongCloudToken) {
		this.rongCloudToken = rongCloudToken;
	}

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getRoleCode() {
		return roleCode;
	}

	public void setRoleCode(String roleCode) {
		this.roleCode = roleCode;
	}

	public String getMemberRecommend() {
		return memberRecommend;
	}

	public void setMemberRecommend(String memberRecommend) {
		this.memberRecommend = memberRecommend;
	}

	public String getTalentTeacher() {
		return talentTeacher;
	}

	public void setTalentTeacher(String talentTeacher) {
		this.talentTeacher = talentTeacher;
	}

	public int getIsShow() {
		return isShow;
	}

	public void setIsShow(int isShow) {
		this.isShow = isShow;
	}

	public int getIsOpenRecommand() {
		return isOpenRecommand;
	}

	public void setIsOpenRecommand(int isOpenRecommand) {
		this.isOpenRecommand = isOpenRecommand;
	}

	public int getEmpiricValue() {
		return empiricValue;
	}

	public void setEmpiricValue(int empiricValue) {
		this.empiricValue = empiricValue;
	}

	public int getTotalSale() {
		return totalSale;
	}

	public void setTotalSale(int totalSale) {
		this.totalSale = totalSale;
	}

	public String getIsHasLoginPwd() {
		return isHasLoginPwd;
	}

	public void setIsHasLoginPwd(String isHasLoginPwd) {
		this.isHasLoginPwd = isHasLoginPwd;
	}

	/** 是否是普通店主 */
	public boolean isOrdinaryLevel() {
		return getLevel() >= CommonConstants.TALENT_MIN_LEVEL && getLevel() <= CommonConstants.TALENT_MAX_LEVEL;
	}

	/** 是否是店主级别 */
	public boolean isStoreLevel() {
		return getLevel() >= CommonConstants.TALENT_MIN_LEVEL && getLevel() <= CommonConstants.MEMBER_MAX_LEVEL;
	}

	/** 不是店主级别 */
	public boolean isNotStoreLevel() {
		return !isStoreLevel();
	}

	/** 是否是达人讲师 */
	public boolean isSalesman() {
		return getLevel() == CommonConstants.TALENT_TEACHER_LEVEL;
	}

	/** 是否是督导 */
	public boolean isSupervisor() {
		return getLevel() == CommonConstants.SUPERVISOR_LEVEL;
	}

	/** 是否有推荐人身份ID */
	public boolean hasRecommendFrom() {
		return !(getRecommendFrom() == null || getRecommendFrom().trim().length() == 0);
	}

	/** 是否有会员推荐人身份ID */
	public boolean hasMemberRecommend() {
		return !(getMemberRecommend() == null || getMemberRecommend().trim().length() == 0);
	}

	/** 是否有达人讲师身份ID */
	public boolean hasTalentTeacher() {
		return !(getTalentTeacher() == null || getTalentTeacher().trim().length() == 0);
	}

}
